/*
 * @Author: hua
 * @Date: 2020-03-07 14:45:54
 * @description:
 * @LastEditors: hua
 * @LastEditTime: 2020-04-12 09:15:38
 */
/**
 * Metro configuration for React Native
 * https://github.com/facebook/react-native
 *
 * @format
 */

module.exports = {
  transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: false,
      },
    }),
    getTransformModulePath() {
      return require.resolve('react-native-typescript-transformer');
    },
    getSourceExts() {
      return ['ts', 'tsx'];
    },
  },
};
